package com.example.voice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author crp
 * @since 2025-09-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("voice_processing_tasks")
public class VoiceProcessingTasks implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 任务唯一标识
     */
    @TableField("task_id")
    private String taskId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 角色ID
     */
    @TableField("character_id")
    private Long characterId;

    /**
     * 对话ID
     */
    @TableField("conversation_id")
    private Long conversationId;

    /**
     * 任务状态
     */
    @TableField("status")
    private String status;

    /**
     * 进度百分比(0-100)
     */
    @TableField("progress")
    private Integer progress;

    /**
     * 当前处理步骤
     */
    @TableField("current_step")
    private String currentStep;


    /**
     * 音频格式
     */
    @TableField("audio_format")
    private String audioFormat;

    /**
     * 语言代码
     */
    @TableField("language")
    private String language;

    /**
     * 识别文本
     */
    @TableField("recognized_text")
    private String recognizedText;

    /**
     * AI回复内容
     */
    @TableField("ai_reply")
    private String aiReply;

    /**
     * AI语音文件URL
     */
    @TableField("voice_url")
    private String voiceUrl;

    /**
     * 用户语音文件URL
     */
    @TableField("user_voice_url")
    private String userVoiceUrl;

    /**
     * 错误信息
     */
    @TableField("error_message")
    private String errorMessage;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;


}
